package com.sigmatrix.h5.service.impl;

import org.springframework.stereotype.Service;

import com.sigmatrix.h5.entity.DisAcctRole;
import com.sigmatrix.h5.service.DisAcctRoleService;
import com.sigmatrix.sc.jdbc.common.service.ServiceImpl;

/**
 * 
 *@ClassName: DistributionAcctRoleServiceImpl
 *@Description: 账号权限
 *@author MH
 *@date 2017年11月13日 下午5:57:20
 */
@Service
public class DisAcctRoleServiceImpl extends ServiceImpl<DisAcctRole, Integer> implements DisAcctRoleService{

	@Override
	public Integer create(Integer dealerId, Integer accountId, Integer roleId) {
		DisAcctRole ar = new DisAcctRole();
		ar.setAccountId(accountId);
		ar.setDealerId(dealerId);
		ar.setRoleId(roleId);
		return insertSelective(ar);
	}

}
